package Day06;

public class ArrayDemo {
    public static void main(String[] args) {
        int[] a = {10,20,30,40,50};
        int[] b = new int[6];
        char[] c = new char[]{'1','5','r','s',' '};

        System.out.println(c);

//        System.arraycopy(a,0,b,1,5);  //从一个数组 复制到另一个数组
//        for (int i=0;i<b.length;i++) {
//            System.out.print(b[i]+"\t");
//        }
//        System.out.println(c.length);
//        System.out.println(c[0]+" "+c[2]);


        /*
        * System.arraycopy();
        * System.arraycopy():
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy():
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy();
        * System.arraycopy():
        * System.arraycopy();
        * */
    }
}
